/// userRegionID : 0
/// userRegionDetail : "湖南省长沙市"
/// userRegionType : "IP-Local"
/// userRegionInfo : "222.240.99.218"

class RegionInfo {
  RegionInfo({
    num? userRegionID,
    String? userRegionDetail,
    String? userRegionType,
    String? userRegionInfo,
  }) {
    _userRegionID = userRegionID;
    _userRegionDetail = userRegionDetail;
    _userRegionType = userRegionType;
    _userRegionInfo = userRegionInfo;
  }

  RegionInfo.fromJson(dynamic json) {
    _userRegionID = json['userRegionID'];
    _userRegionDetail = json['userRegionDetail'];
    _userRegionType = json['userRegionType'];
    _userRegionInfo = json['userRegionInfo'];
  }

  num? _userRegionID;
  String? _userRegionDetail;
  String? _userRegionType;
  String? _userRegionInfo;

  RegionInfo copyWith({
    num? userRegionID,
    String? userRegionDetail,
    String? userRegionType,
    String? userRegionInfo,
  }) =>
      RegionInfo(
        userRegionID: userRegionID ?? _userRegionID,
        userRegionDetail: userRegionDetail ?? _userRegionDetail,
        userRegionType: userRegionType ?? _userRegionType,
        userRegionInfo: userRegionInfo ?? _userRegionInfo,
      );

  num? get userRegionID => _userRegionID;

  String? get userRegionDetail => _userRegionDetail;

  String? get userRegionType => _userRegionType;

  String? get userRegionInfo => _userRegionInfo;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userRegionID'] = _userRegionID;
    map['userRegionDetail'] = _userRegionDetail;
    map['userRegionType'] = _userRegionType;
    map['userRegionInfo'] = _userRegionInfo;
    return map;
  }
}
